package com.zlq.man;

import org.springframework.amqp.core.AmqpTemplate;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class ManSen {
    @Resource
    private AmqpTemplate amqpTemplate;

    public void sendI(){
        for (int i = 0; i < 50; i++) {
            amqpTemplate.convertAndSend("man","Man发送"+i);
        }

    }
}
